package com.turing.usdtpay.mvp.contract;

import android.app.Activity;
import android.content.Context;

import com.turing.usdtpay.entity.OrderInfoData;
import com.turing.usdtpay.entity.RobData;
import com.turing.usdtpay.mvp.presenter.BasePresenter;
import com.turing.usdtpay.mvp.view.BaseView;

/**
 * @作者：JAY
 * @创建时间：2019/10/21 17:31
 * @描述：
 **/
public class RobOrderContract {

    public interface View extends BaseView<Present> {
        public void buying();

        public void selling(String limit);

        public void stopTrader(int type);

        public void getStateSuccess(RobData data);

        public void onFail(String error);

        public void getOrder(OrderInfoData data,int type);

        public void serviceResult(int type);

        public void getMoneySuccess(int money);

    }

    public interface Present extends BasePresenter {
        public void getState(Activity activity);

        public void buyOrder(Activity activity);

        public void sellOrder(Activity activity);

        public void stopBuy(Activity activity);

        public void stopSell(Activity activity);

        public void getOrderInfo(Activity activity,int type);

        public void startServer(Context context);

        public void getMoney(Activity activity);
    }
}
